package com.sangu.dianxiu.bean.user;

import java.io.Serializable;
import java.util.List;

/**
 * 地址类
 * Created by sg2 on 2016/1/8.
 */
public class AddressEntity implements Serializable{


    /**
     * rc : 0
     * addrs : [{"addrId":22,"cityId":1,"countyId":1,"addr":"中国浙江省杭州市滨江区东一路658","lon":120.208,"lat":30.1883,"isDefault":false},{"addrId":23,"cityId":1,"countyId":1,"addr":"中国浙江省杭州市滨江区东一路658","lon":120.208,"lat":30.1883,"isDefault":false},{"addrId":25,"cityId":1,"countyId":1,"addr":"中国浙江省杭州市滨江区东一路658","lon":120.208,"lat":30.1883,"isDefault":false}]
     */

    private int rc;
    /**
     * addrId : 22
     * cityId : 1
     * countyId : 1
     * addr : 中国浙江省杭州市滨江区东一路658
     * lon : 120.208
     * lat : 30.1883
     * isDefault : false
     */

    private List<AddrsEntity> addrs;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setAddrs(List<AddrsEntity> addrs) {
        this.addrs = addrs;
    }

    public int getRc() {
        return rc;
    }

    public List<AddrsEntity> getAddrs() {
        return addrs;
    }

    public static class AddrsEntity {
        private int addrId;
        private int cityId;
        private int countyId;
        private String addr;
        private double lon;
        private double lat;
        private boolean isDefault;

        public void setAddrId(int addrId) {
            this.addrId = addrId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public void setCountyId(int countyId) {
            this.countyId = countyId;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }

        public void setLon(double lon) {
            this.lon = lon;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }

        public void setIsDefault(boolean isDefault) {
            this.isDefault = isDefault;
        }

        public int getAddrId() {
            return addrId;
        }

        public int getCityId() {
            return cityId;
        }

        public int getCountyId() {
            return countyId;
        }

        public String getAddr() {
            return addr;
        }

        public double getLon() {
            return lon;
        }

        public double getLat() {
            return lat;
        }

        public boolean isIsDefault() {
            return isDefault;
        }
    }
}
